Skip to content

Reader tab: style recent trades like Activity tab FeedRow#795

Merged
realproject7 merged 2 commits intomainfrom
task/786-reader-trades-activity-style
Apr 3, 2026
Merged

Reader tab: style recent trades like Activity tab FeedRow#795
realproject7 merged 2 commits intomainfrom
task/786-reader-trades-activity-style

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Restyles HoldingRecentTrades to match Activity tab FeedRow pattern
  • Bordered card rows with border-border rounded border px-3 py-1.5
  • Color-coded Buy/Sell labels: green (text-green-700) / red (text-red-700)
  • USD value display with formatUsdValue
  • Date as <time> element
  • Basescan tx link (↗) for each transaction
  • Fetches tx_hash from trade_history query (was not queried before)

Test Plan

  • Reader tab: verify trade rows have bordered card style
  • Verify Buy = green, Sell = red labels
  • Verify USD amounts display correctly
  • Verify Basescan link opens correct tx
  • Verify date formatting matches Activity tab

Fixes #786

🤖 Generated with Claude Code

Restyle HoldingRecentTrades with bordered card rows, color-coded
Buy/Sell labels (green/red), USD amounts, date, and Basescan tx
link — matching the Activity tab FeedRow pattern.

Fixes #786

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored Apr 3, 2026 8:33am

Request Review

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: REQUEST CHANGES

Summary

The visual restyle is aligned with the Activity tab pattern, and the surrounding holding card already provides the story link. One acceptance criterion from issue #786 is still missing.

Findings

  • [medium] The timestamp is still rendered as plain text instead of a clickable link, so the PR does not satisfy issue #786 item 4 ("Date: Linked as a clickable timestamp").
    • File: src/app/profile/[address]/page.tsx:1607
    • Suggestion: Wrap the date in an anchor, using the intended permalink target for the trade instead of a bare <time> element.

Decision

Requesting changes until the date is actually clickable, which is still part of the issue's stated acceptance criteria.

Date + arrow now wrapped in a single anchor linking to the tx on
Basescan. Falls back to plain <time> when tx_hash is missing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

The follow-up change resolves the remaining acceptance-criteria gap from issue #786. The recent-trades row now matches the intended Activity-tab pattern closely enough to merge.

Findings

  • [resolved] The date is now a clickable timestamp when tx_hash is present, with a safe plain <time> fallback when there is no transaction link target.
    • File: src/app/profile/[address]/page.tsx:1607
    • Suggestion: None.

Decision

Approving. My prior blocker on the non-clickable timestamp is addressed.

@realproject7 realproject7 merged commit b647343 into main Apr 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] Reader tab: style recent trades like Activity tab FeedRow

2 participants